/**
 * Created by 杨浩宇 on 2016/8/6 0006.
 */
require(['requireConfig'], function (common) {
    //在此定义此页面需要的js。只要window不跳转，所有可能用到的js都在此定义
    var thisRequireArray = [
        'common',
        'public/app',
        'app/home/home',
        'app/security/menu',
        'app/security/role',
        'app/security/user',
        'app/topo/topo',
        'app/config/template',
        'app/config/icons',
        'app/config/hostgroup',
        'app/device/device',
        'app/graph/designer',
        'app/graph/dataSource',
        'app/graph/dsChooser'
    ];

    var requireArray = common.commonRequire.concat(thisRequireArray);

    require(requireArray,
        function () {
            var domReady = require("domReady");
            var Home = require("app/home/home");
            var app = require("public/app");

            domReady(function () {
                var homePage = app.getBasePath() + "/pages/app/home/home.jsp";
                $("#indexFrame").load(homePage, {}, function (response, status, xhr) {
                    var homeInstance = new Home($("#indexFrame"));
                });
            });
        });
});